import unittest
from BeautifulReport import BeautifulReport
class Tools(unittest.TestCase):
    def test_report(self):
        suit = unittest.defaultTestLoader.discover(start_dir='./',pattern='test_denglu.py')
        report=BeautifulReport(suit)
        report.report(description='报告',filename='excl.html')
if __name__ == '__main__':
    unittest.main()

class Too(unittest.TestCase):
    def test_01(self):
        suit = unittest.defaultTestLoader.discover(start_dir='./',pattern='')
        report=BeautifulReport(suit)
        report.report(description='报告',filename='e.html')